import axios from '@/functions/request';

function getList(params) {
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/flow/task/getTask",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e) 
        });
    })
}

function taskDeal(params) {
    return new Promise((resolve, reject)=>{
        axios.formPost( "/api/flow/task/deal",params).then(res=>{
            resolve(res)
        }).catch(e => {
            reject(e) 
        });
    })
}


export {
    getList,
    getTaskParamList,
    taskDeal
}
